package com.baizhi.cmfz.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("restful")
public class TestRestfulController {
   // @RequestMapping(path = "testRestful/{name}", method = RequestMethod.GET)
    @GetMapping("testRestful/{name}/{id}")
    public String testRestful(@PathVariable("name") String name,@PathVariable("id") int id) {
        return "接收参数"+name+"id"+id;
    }
}
